import { runInContext } from "vm";

class Dog01 {
    constructor(name: string) {
        this.name = name
    }
    public name: string = 'dog'
    run() {}
    private pri() {}
    protected pro() {}
    readonly legs: number = 4
    static food: string = 'bones'
}

console.log(Dog01.prototype)
let dog = new Dog01('wangwang')
console.log(dog)
// dog.pri()
// dog.pro()
console.log(Dog01.food)

class Husky01 extends Dog01 {
    constructor(name: string, public color: string) {
        super(name)
        this.color = color
    }
    // color: string
}

console.log(Husky01.food)

